package com.manager.plat.action;

import java.util.List;

import org.apache.log4j.Logger;

import com.manager.plat.dao.IConfigRouterDao;
import com.manager.plat.vo.TermVo;
import com.opensymphony.xwork2.ActionSupport;

public class CommonAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5511481216777491019L;
	private static Logger logger = Logger.getLogger(CommonAction.class);
	
	private IConfigRouterDao configRouterDao;			//路由信息数据接口
	private List<String> spnumberList;					//长号码信息列表
	private int lower_id;								//渠道ID
	
	public String getSpNumberForPartner(){
		/**根据渠道ID获得渠道长号码列表*/
		spnumberList = configRouterDao.getSpnumberPartnerList(lower_id);
		return SUCCESS;
	}

	public IConfigRouterDao getConfigRouterDao() {
		return configRouterDao;
	}

	public void setConfigRouterDao(IConfigRouterDao configRouterDao) {
		this.configRouterDao = configRouterDao;
	}

	public List<String> getSpnumberList() {
		return spnumberList;
	}

	public void setSpnumberList(List<String> spnumberList) {
		this.spnumberList = spnumberList;
	}

	public int getLower_id() {
		return lower_id;
	}

	public void setLower_id(int lower_id) {
		this.lower_id = lower_id;
	}
}
